﻿using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace Smugmug
{
    [XmlType("Image"), JsonObject]
    public class ImageStats
    {
        [XmlAttribute("id"), JsonProperty("id")]
        public int Id { get; set; }
        [XmlAttribute]
        public int Bytes { get; set; }
        [XmlAttribute]
        public int Tiny { get; set; }
        [XmlAttribute]
        public int Thumb { get; set; }
        [XmlAttribute]
        public int Small { get; set; }
        [XmlAttribute]
        public int Medium { get; set; }
        [XmlAttribute]
        public int Large { get; set; }
        [XmlAttribute]
        public int XLarge { get; set; }
        [XmlAttribute]
        public int X2Large { get; set; }
        [XmlAttribute]
        public int X3Large { get; set; }
        [XmlAttribute]
        public float Original { get; set; }
    }

    [XmlType("Images"), JsonObject]
    public class ImageStatsCollection : List<ImageStats>
    {
    }
}